package org.xx.armory.objectparser;

public class NameObjectPairBuilder
        extends ParsedObjectBuilder<NameObjectPair> {
    private String name;
    private String object;

    public NameObjectPairBuilder() {
        this.name = "";
        this.object = "";
    }

    public NameObjectPairBuilder setName(
            String name
    ) {
        this.name = name;
        return this;
    }

    public NameObjectPairBuilder setObject(
            String object
    ) {
        this.object = object;
        return this;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public NameObjectPair build() {
        return new NameObjectPair(getLineInfo(), this.name, this.object);
    }
}
